package cn.edu.scau.cmi.ema.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;

public interface DetectdepartmentDAO extends JpaDao<Detectdepartment> {

	public Detectdepartment findDetectdepartmentById(Integer id) throws DataAccessException;

	public Detectdepartment findDetectdepartmentById(Integer id, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByName(String name) throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByName(String name, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByNameContaining(String name_1) throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByDescription(String description) throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByDescriptionContaining(String description_1)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentByDescriptionContaining(String description_1, int startResult,
			int maxRows) throws DataAccessException;

	public Detectdepartment findDetectdepartmentByPrimaryKey(Integer id) throws DataAccessException;

	public Detectdepartment findDetectdepartmentByPrimaryKey(Integer id, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Detectdepartment> findAllDetectdepartments() throws DataAccessException;

	public Set<Detectdepartment> findAllDetectdepartments(int startResult, int maxRows) throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentsByAddress(Integer addressId, int start, int max);

	public Set<Detectdepartment> findDetectdepartmentByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Detectdepartment> findDetectdepartmentsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Detectdepartment findDetectdepartmentByPhysicalPrimaryKey(String name, Integer addressId)
			throws DataAccessException;

	public Detectdepartment findDetectdepartmentByPhysicalPrimaryKey(String name, Integer addressId, int startResult,
			int maxRows) throws DataAccessException;
}
